<template>
    <div>

    </div>
</template>

<script>
import { mapActions ,mapState} from 'vuex'
export default {
    computed: {
    ...mapState({
      signIn: state => state.account.signIn,
      account: state => state.account.account
    })},
    data(){
        return{
            reward_All:{waiting:0,doing:0,finished:0},
            user_All:{guest:0,verified:0,locked:0},
            post_All:[0,0,0,0,0,0,0]
        }
    },
    mounted(){
        if(this.signIn===false||this.account===null){
            this.openNotification("NOK","未登录","请先登录管理员账号!")
            this.$router.push("/mainPage/login")
        }
        else{
            this.getDataStatistic();
            this.rewardPaint();
            this.userPaint();
            this.postPaint();
        }
    },
    methods:{
        ...mapActions({
            getDataStatistic: 'statistic/getStatistic',
        }),
        
    }
}
</script>

<style lang="scss" scoped>

</style>